package demo.test.controller;


import com.entites.DeviceSet;
import com.entites.PlamSet;
import demo.test.service.DataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
@RestController
@Slf4j
public class CollectionController {
    @Value("${server.port}")
    private String port;

    @Resource
    private DataService dataService;


/**
     * 做一个简单的查询
     * */

    @GetMapping("/Plam/getA")
    public List<PlamSet> getDeviceSets(){

        List<PlamSet> result = dataService.getDeviceSets();
        log.info(String.valueOf(result));
return result;
    }








}
